package com.example.cstr.service;

import com.example.cstr.entity.Message;
import com.example.cstr.entity.User;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface UserService {


    int deleteByPrimaryKey(Integer workId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer workId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAllUser();

    Message Login(Integer workId, String password);

    Message getUserByToken(String token);

    Message PagingSearch(@RequestParam Integer pageNum, @RequestParam Integer size);

    List<User> sortAllUser();

    User sortOwnUser(Integer workId);
}







